]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
gdm: Don't fade in the log in dialog
authorJasper St. Pierre <jstpierre@mecheye.net>
Wed, 22 Aug 2012 07:27:32 +0000 (04:27 -0300)
committerJasper St. Pierre <jstpierre@mecheye.net>
Wed, 19 Sep 2012 04:41:17 +0000 (01:41 -0300)
Instead, directly show it.

https://bugzilla.gnome.org/show_bug.cgi?id=682428

js/gdm/loginDialog.js
js/ui/modalDialog.js

index c6ac0301dcfd3b56125bcf557069c29cec0fdfa0..3d7996c4f72e44a0e72c3f6ce0afd8a6d0e18438 100644 (file)
@@ -625,8 +625,8 @@ const LoginDialog = new Lang.Class({
     _init: function(parentActor) {
         this.parent({ shellReactive: true,
                       styleClass: 'login-dialog',
-                      parentActor: parentActor
-                    });
+                      parentActor: parentActor,
+                      shouldFade: false });
         this.connect('destroy',
                      Lang.bind(this, this._onDestroy));
         this.connect('opened',
index cab256933686770efe0a31faa96f7aa10f37919d..f0c93467692809f0b6e379984e97e3b9d416034b 100644 (file)
@@ -37,12 +37,13 @@ const ModalDialog = new Lang.Class({
     _init: function(params) {
         params = Params.parse(params, { shellReactive: false,
                                         styleClass: null,
-                                        parentActor: Main.uiGroup
-                                      });
+                                        parentActor: Main.uiGroup,
+                                        shouldFadeIn: true });
 
         this.state = State.CLOSED;
         this._hasModal = false;
         this._shellReactive = params.shellReactive;
+        this._shouldFadeIn = params.shouldFadeIn;
 
         this._group = new St.Widget({ visible: false,
                                       x: 0,
@@ -210,7 +211,7 @@ const ModalDialog = new Lang.Class({
         this._group.show();
         Tweener.addTween(this._group,
                          { opacity: 255,
-                           time: OPEN_AND_CLOSE_TIME,
+                           time: this._shouldFadeIn ? OPEN_AND_CLOSE_TIME : 0,
                            transition: 'easeOutQuad',
                            onComplete: Lang.bind(this,
                                function() {